home *** CD-ROM | disk | FTP | other *** search
- Path: cstatd.cstat.co.za!usenet
- From: Ian Molesworth <panacea@iafrica.com>
- Newsgroups: comp.lang.c
- Subject: MS C help please - video functions
- Date: Sat, 20 Jan 1996 03:38:38 -0800
- Organization: Panacea Systems cc
- Message-ID: <3100D43E.2239@iafrica.com>
- NNTP-Posting-Host: slipper74111.iafrica.com
- Mime-Version: 1.0
- Content-Type: text/plain; charset=iso-8859-1
- Content-Transfer-Encoding: 8bit
- X-Mailer: Mozilla 2.0b5 (Win16; I)
-
- Using MS visual C++ 1.5 compiler target system is an embedded 8086 type
- product in a PC type setup. Bios resources are available but limited and
- source is available for modification.
-
- Problem:
- _setvideomode returns (0) - the operation was unsuccessfull (??)
-
- _getvideomode() and printing the results from the structure indicates
- that a mono type display and adapter are connected when in fact I have a
- CGA adapter in 640*200 graphics mode ( mode 6 ).
-
- calling int 10h sub-function 0F returns 80 chars width, mode 6 ,page
- 0.
-
- Because the setvideomode was unsuccesful ( or the underlying data
- about the adapter and display are wrong ) subsequent calls to things like
- _lineto() _circle() etc etc simply don't work
-
- Microsoft's C seems to gather info about the system config etc in it's
- initial setup code. Trying to debug this data gathering excercise looks
- like a pile of work. Can anyone help with whic bios interrupts may be
- required, Areas of the Bios communications block that may need
- initialising, or any further help with the internal workings of the MS C
- runtime libraries.
-
- Thanks in advance.
-
- Ian Molesworth panacea@iaccess.za Tel **27 11 452 0002
- Gold & two diamonds ZS-GOR LS4 26░08.428s 28░10.155e
- Soaring Society of South Africa Executive comittee & MGC Committee
- "Time is defined to make motion look simple" - A.Einstein
-